package WarTug;

import org.newdawn.slick.opengl.Texture;

public class DrawableImage implements Drawable {

	// This texture exists in TextureHolder.  Pass in a pointer in the constructor.
	private Texture texture;
	private double x, y, z, w, h;
	
	public DrawableImage(double x, double y, double z, double w, double h, Texture tex){
		this.x = x;
		this.y = y;
		this.z = z;
		this.w = w;
		this.h = h;
		this.texture = tex;
	}
	
	public void setTexture(Texture tex){
		texture = tex;
	}
	
	@Override
	public Texture getTexture() {
		return texture;
	}

	@Override
	public double getX() {
		return x;
	}
	
	public void setX(double x){
		this.x = x;
	}

	@Override
	public double getY() {
		return y;
	}
	
	public void setY(double y){
		this.y = y;
	}

	@Override
	public double getZ() {
		return z;
	}
	
	public void setZ(double z){
		this.z = z;
	}

	@Override
	public double getWidth() {
		return w;
	}

	@Override
	public double getHeight() {
		return h;
	}

}
